﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterpage/LoginSite.Master" AutoEventWireup="true" CodeBehind="ShopDetail.aspx.cs" Inherits="ShopDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:HiddenField ID="hdnShopLogo" runat="server" />
<asp:HiddenField ID="hdnShopImage" runat="server" />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0">
 <tr>
            <td align="left" colspan="2">
            แก้ไขข้อมูลร้านค้า (Shop Information)
            </td>
        </tr>
        <tr>
            <td align="left">
            รหัสร้านค้า :
            </td>
            <td align="left" valign="top">
                <asp:Label ID="lblShopID" runat="server"></asp:Label>
                </td>
        </tr>
        <tr>
            <td align="left">
            ชื่อร้านค้า :
            </td>
            <td align="left" valign="top">
                <asp:TextBox ID="txtShopName" runat="server"></asp:TextBox>
                </td>
        </tr>
        <tr>
            <td align="left" valign="top">
            ที่อยู่ :
            </td>
            <td align="left" valign="top">
                <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" Height="65px" Width="255px"></asp:TextBox>
              </td>
        </tr>
        <tr>
            <td align="left">
            Latitude :
            </td>
            <td align="left" valign="top">
                <asp:TextBox ID="txtLatitude" runat="server"></asp:TextBox>
        </td>
        </tr>
        <tr>
            <td align="left">
               Longitude :
            </td>
            <td align="left" valign="top">
                <asp:TextBox ID="txtLongitude" runat="server"></asp:TextBox>
        </td>
        </tr>
        <tr>
            <td align="left">
                รายละเอียดร้านค้า :
            </td>
            <td align="left" valign="top">
                <asp:TextBox ID="txtShopDetail" runat="server"  TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="left">
            โลโก้ร้านค้า :
            </td>
            <td align="left" valign="top">
            <asp:FileUpload ID="flUploadShopLogo" runat="server" /></td>
        </tr>
        <tr>
            <td align="left">
            Package :
            </td>   
            <td align="left" valign="top">
                <asp:DropDownList ID="ddlPackage" runat="server"></asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="left">
            ประเภทร้านค้า :
            </td>   
            <td align="left" valign="top">
                <asp:DropDownList ID="ddlShopType" runat="server"></asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="left">
            รูปภาพร้านค้า :    
            </td>
            <td align="left" valign="top">
                <asp:FileUpload ID="flUploadShopImage" runat="server" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
            <asp:Button ID="btnSave" runat="server" Text="บันทึก" onclick="btnSave_Click"/>
                &nbsp;<asp:Button ID="btnBack" runat="server" Text="ย้อนกลับ" 
                    onclick="btnBack_Click" />
            </td>
        </tr>
</table>
</td>
</tr>
<tr>
<td align="center">
 <asp:Label ID="lblMessage" runat="server"></asp:Label>
</td>
</tr>
</table>
</asp:Content>
